package com.proyecto.spv.client.view;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.HasHorizontalAlignment;
import com.google.gwt.user.client.ui.DecoratedStackPanel;
import com.google.gwt.user.client.ui.Tree;
import com.google.gwt.user.client.ui.TreeItem;

public class MantenerEmpresaView implements EntryPoint {

	public void onModuleLoad() {
		RootPanel rootPanel = RootPanel.get();
		
		VerticalPanel verticalPanel = new VerticalPanel();
		rootPanel.add(verticalPanel, 10, 10);
		verticalPanel.setSize("449px", "291px");
		
		HorizontalPanel horizontalPanel = new HorizontalPanel();
		verticalPanel.add(horizontalPanel);
		horizontalPanel.setSize("449px", "38px");
		
		Image image = new Image((String) null);
		image.setAltText("logo");
		horizontalPanel.add(image);
		
		Label label = new Label("Sistema de Planilla Virtual");
		label.setStyleName("gwt-Label-Title");
		label.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
		horizontalPanel.add(label);
		
		HorizontalPanel horizontalPanel_2 = new HorizontalPanel();
		verticalPanel.add(horizontalPanel_2);
		
		DecoratedStackPanel decoratedStackPanel = new DecoratedStackPanel();
		horizontalPanel_2.add(decoratedStackPanel);
		
		Tree tree = new Tree();
		decoratedStackPanel.add(tree, "Empresa", false);
		tree.setSize("100%", "119px");
		
		TreeItem trtmAgregar = new TreeItem("Agregar");
		tree.addItem(trtmAgregar);
		
		TreeItem trtmActualizar = new TreeItem("Actualizar");
		tree.addItem(trtmActualizar);
		
		TreeItem trtmBloquear = new TreeItem("Bloquear");
		tree.addItem(trtmBloquear);
	}

}
